Liste basicque des champs yaml disponible pour Latex
Toutes les possibilité de YAML pour personnaliser son export latex
La liste ci-dessous n'est pas obligées d'etre utilisée à chaque fois. C'est simplement un exemple de tout ce qui existe. Les YAML les plus utiles sont déjà utilisées dans mes templates
Tout ce qui est en dessous écrase et prévaut sur ce qui est au dessus dans les métadonnées. Ainsi mettre en bas des métadonnées les packages et fonctionnalités importantes !
Toutes les YAML influençant les paramÚtres
BASIC SETTINGS
language, identifies the main language of the document, (polyglossia-lang)
default: 'en'
lang: 'fr'
the base direction of the document, either rtl (right-to-left) or ltr
(left-to-right). When using LaTeX for bidirectional documents, only the
xelatex engine is fully supported (use --pdf-engine=xelatex).
default: 'ltr'
dir: 'ltr'
paper size, e.g. letter, a4
default: 'a4'
papersize: 'a4'
font size for body text (e.g. 10pt, 12pt)
default: '11pt'
fontsize: '11pt'
document class, e.g. article, report, book, memoir, scrreport, scrartcl,
default: 'scrbook'
DO NOT CHANGE THIS OPTION!
documentclass: 'scrbook'
option for document class, e.g. titlepage, oneside; may be repeated for
multiple options.
some exmaple options:
11pt,%-------------------------------to have a document with font size: 11pt
paper=a4,%-----------------------to have a document with real paper size: a4
pagesize,%-------to have a virtual page size that is equal to the paper size
twoside,%--------------------------------to print on both sides of the paper
%oneside,%------------------to âprintâ just on one side of digitaly pdf page
BCOR=2mm,%---------------------------------to reserve 2mm binding correction
openright,%---------------------------to open new chapters on the right side
titlepage=firstiscover%----to specifie the first page as a cover/ image page
]{scrbook}%----------------------------to use the koma-script class "scrbook"
defaults:
- 'twoside'
- 'twocolumn'
- 'parskip=full'
classoption:
- 'twoside'
- 'onecolumn'
- 'twocolumn'
TITLEPAGE(S) SETTINGS
to omit the default title pages and specify your own titlepage layout in
./controls/arabica.latex
default: false
custom_title_page: false
to have a half title (page)
default: true
extratitle: true
to have additional information (advisors name, âŠ) in the publishers field
this option needs extratitile to be true
EITER both false OR only one is true (NOT both can be true)
default: true
title_page_a: true
default: false
title_page_b: false
give path here if you want to include a logo or graphic in your title page(s)
example: './titlepage/dummygraphic.pdf'
titlepage:
graphic: #'./graphics/dummygraphic.pdf'
logo: #'./graphics/dummylogo.pdf'
activate / deactivate display of your abtsract text
the classoption "abstract" only specifies if the (language dependent) heading
"Abstract" is displayed or not.
default: true
display_abstract: true
include table of contents (can also be set using --toc/--table-of-contents)
default: true
toc: true
if you want to have a onecolumn table of content even if your document is
in twocolumn,then set this option to true.
if true, loading pkg "multicol" is mandatory
default: false
onecol_toc: false
level of section to include in table of contents
default: 2
toc-depth: 2
DEFAULT PACKAGES
option for geometry package, e.g. margin=1in; may be repeated for multiple
options
default:
geometry:
sets margins, if geometry is not used (otherwise geometry overrides these)
default:
margin-left:
margin-right:
margin-top:
margin-bottom:
adjusts line spacing using the setspace package, e.g. 1.25, 1.5
default:
linestretch:
font package for use with pdflatex; TeX Live includes many options,
documented in the LaTeX Font Catalogue. The default is Latin Modern.
default: 'libertine'
fontfamily: 'libertine'
options for package used as fontfamily; e.g. osf,sc with fontfamily set to
mathpazo provides Palatino with old-style figures and true small caps; may be
repeated for multiple options
default:
fontfamilyoptions:
advanced font selection in XeLaTeX and LuaLaTeX
enable system font access (needed by XeLaTex)
for: \setmainfont{...}, \setsansfont{...}, \setmonofont
and \setmathfont{...} see option "mainfont".
default: true
fontspec: true
font families for use with XeLaTeX or LuaLaTeX take the name of any system
font, using the fontspec package. Note that if CJKmainfont is used, the xecjk
package must be available.
mainfont: 'Libertinus Serif'
sansfont: 'Libertinus Sans'
monofont: 'Libertinus Mono'
mathfont: 'Libertinus Math'
CJKmainfont:
options to use with mainfont, sansfont, monofont, mathfont, CJKmainfont in
xelatex and lualatex. Allow for any choices available through fontspec, such # as the OpenType features Numbers=OldStyle,Numbers=Proportional. May be
repeated for multiple options.
default:
mainfontoptions:
sansfontoptions:
monofontoptions:
mathfontoptions:
CJKoptions:
allows font encoding to be specified through fontenc package (with pdflatex); # default is T1 (see guide to LaTeX font encodings)
default:
fontenc:
options to pass to the microtype package
the microtype package is loaded automatically if available
default: 'final'
microtypeoptions: 'final'
add color to link text; automatically enabled if any of linkcolor, citecolor, # urlcolor, or toccolor are set (see pkg/ option "xcolor")
default: true
colorlinks: true
color for internal links, citation links, external links, and links in table # of contents; uses options allowed by xcolor, including the dvipsnames,
svgnames, and x11names lists
default:
linkcolor:
citecolor:
urlcolor:
toccolor:
causes links to be printed as footnotes
default:
links-as-notes:
EXTRA PACKAGES
to manage text 'layers' within koma-script
default:
scrlayer:
to define and manage page styles (see "fancyhdr" too)
default:
scrlayer-scrpage:
to control note columns parallel to the main text
to set side note column you need pkg "scrlayer-notecolumn"
you may want to set: \setkomafont{notecolumn.marginpar}{\footnotesize}
default:
scrlayer-notecolumn:
default: '\footnotesize'
notecolumnfontsize: '\footnotesize'
to mix onecolumn and twocolumn modes for example for wide equations.
usage: \begin{strip}...\end
default:
cuted:
for url-sensitive linebreaks (needed by XeLaTex)
default:
url:
for fitch-style natural deduction proofs
default:
lplfitch:
for advanced math typesetting (loads all default math pkg)
if you set this option all the folowing packages will be loaded automatically
except for: package "amssymb" and "amsmath" because they are loaded
automatically.
mathematical tools to use with amsmath
\usepackage
ams mathematical facilities for LaTeX
\usepackage{amsmath}# possibly loaded loaded somewhere else too
TeX fonts from the american mathematical society
\usepackage
additional mathematical symbols
\usepackage{amssymb}# possibly loaded loaded somewhere else too
typesetting of custom theorems (in ams style)
\usepackage
dirac bra-ket and set notations
\usepackage
for numbered cases (mappings) environment
\usepackage
for proof trees in the style of the sequent calculus
\usepackage
default: true
math: true
to create (tabular cells spanning) multiple rows
default:
multirow:
to create (tabular cells spanning) multiple columns (load before pkg "bidi")
default:
multicol:
to create continuation headings and legends for floats
default:
ccaption:
to inlcude images (.pdf, .eps, .png)
default: true
graphics: true
to scale graphics relative to reference object (needs pkg "graphicx")
usage: \scalerel*{\includegraphics{inlinegraphic.pdf}}
default: true
scalerel: true
to allow text to flow around graphics
default:
wrapfig:
to insert pictures into paragraphs (see pkg "picins")
default:
picinpar:
for driver-independent color extensions (see option "colorlinks")
the package xcolor is loaded automatically if colorlinks are set
default:
xcolor:
default: 'usenames'
xcoloroptions: 'usenames'
to create postscript and pdf graphics in TeX (see pkg "tikz")
default:
pgf:
for drawing functions in LaTeX
you may want to use specific tikz libraries e.g.:
\usetikzlibrary
default:
tikz:
default:
usetikzlibrary:
to not interpret latex commands but display them (see pkg "upquote")
default:
verbatim:
to typeset dropped capitals
default:
lettrine:
to avoid widows
default: true
nowidow: ture
default:
- 'defaultlines=3'
- 'all'
nowidowoptions:
to generate lorem ipsum blind text text for testing purposes
default:
blindtext:
to generate sentences in kant's style for testing purposes
default:
kantlipsum:
to draw frame around pages to see margin changes for testing purposes
default:
showframe:
to print watermarks
firstpage to put a watermark text only on the first page
nostamp for quickly removing the âdraftâ status from a document
default:
draftwatermark:
default:
- 'firstpage'
- 'nostamp'
- 'titlepage'
draftwatermarkoptions:
- 'firstpage'
- 'nostamp'
- 'titlepage'
to include the creative commons icons in my document
default:
ccicons:
set pagestyle (needs pkg "scrlayer-scrpage")
default:
scrheadings:
float (load pkg "float" before pkg "hyperref")
default:
float:
DEFAULT SETTINGS
uses document class settings for indentation (the default LaTeX template
otherwise removes indentation and adds space between paragraphs)
default:
indent: true
disables default behavior of LaTeX template that redefines (sub)paragraphs as
sections, changing the appearance of nested headings in some classes
default:
subparagraph:
numbering depth for sections, if sections are numbered
default: 3
secnumdepth: 3
include list of figures, list of tables
default: false
lof: false
default: false
lot: false
to activate numbered sections (headdings)
default: true
number-sections: true
an option for LaTeXâs \pagestyle{}. The default article class supports
âplainâ (default), âemptyâ, and âheadingsâ; headings puts section titles in
the header.
default: 'headings'
pagestyle: 'headings'
pandoc-citeproc citation style
default: './csl/chicago-author-date-de.csl'
csl: './csl/chicago-author-date-de.csl'
pandoc-citeproc
default: true
link-citations: true
bibliographic database
bibliography: './bib/references.bib'
if you want to print out all items in your bibliography file regardles of
you mentioned them in your project, then uncomment the following 2 lines.
default: # (commented out)
nocite: |
@*
if you want to have a custom title for your bibliography specify it here
default:
reference-section-title:
bibliography style, when used with --natbib and --biblatex.
default:
biblio-style:
bibliography title, when used with --natbib and --biblatex.
default:
biblio-title:
list of options for biblatex.
default:
biblatexoptions:
list of options for natbib.
default:
natbiboptions:
EXTRA SETTINGS
for creative commons icons
default: true
ccicons: true
to inject hyperref compatible metadata into the pdf
default:
hyperxmp:
to mix onecolumn and twocolumn modes for example for wide equations.
usage: \begin{strip}...\end
default: true
cuted: true
to create (tabular cells spanning) multiple columns
default: true
multicol: true
typographical intervention aka matter of taste: set this to true if you want
to use one and only one single font (typeface) for the entire document
including headings.
(komascript uses bold sans font for headings per default which is not optimal # IMO.)
default: true
serif_headings: true
...
source : https://gist.github.com/keeferrourke/52914770dfa6d070e50310971514f362
Les YAML concernant les métadonnées de l'article qu'on écrit
Métadonnée complete pour article scientifique. Implique un rassemblement de diffénts documents. Les ligne avec des # indiquent que ca ne marchent pas en YAML simple
doi: &doi
title: &title 'Title'
subtitle: &subtitle 'Long pretentious'
author: &author
- 'Author'
web: &web http://www.example.org/
email: &email 'example@example.org'
subject: &subject 'A research paper'
year: &year '2019'
date: &date '\today'
submission_date: *date
place: &place 'World'
aim:
normal:
formal:
abstract: &abstract >
This is an abstract placeholder
another_abstract: &another_abstract >
tags: &tags ['Word','and','Object']
keywords: *tags
institute: &institute
dedication:
license:
short:
long:
year: *year
holder: *author
email: *email
url:
#version: &version
timestamp:
hash:
link:
publishers:
default names, labels and symbols
default:
version:
label: 'Version (Timestamp + Hash)'
publication:
label: 'Publication'
license:
label: &license_label 'License'
symbol: &creativecommons_symbol '\ccbysa'
abstract:
label: 'Summary'
another_abstract:
label: 'Abstract'
person_id:
label: 'Open Researcher and Contributor ID (ORiCD)'
symbol: &orcid_symbol '\scalerel*{\includegraphics{./icons/orcid_icon.pdf}}{O}'
object_id:
label: 'Digital Object Identifier (DOI)'
symbol: &doi_symbol '\scalerel*{\includegraphics{./icons/doi_icon.pdf}}{O}'
advisor:
label: &advisor_label 'Supervised'
submission:
label: &submission_label 'Submitted on'
email:
label: &email_label 'E-Mail'
web:
label: &web_label 'Web'
role:
creator: &creator 'Author'
co-creator: &co-creator 'Co-Author'
contributor: &contributor 'Contributor'
advisor: &advisor 'Advisor'
reviewer: &reviewer 'Reviewer'
examinator: &examinator 'Examinator'
first_examinator: &first_examinator '1. Examinator'
second_examinator: &second_examinator '2. Examinator'
extratitle_line:
(co-)creators and (co-)authors
creators:
- creator:
- title:
- firstname:
- lastname:
- orcid:
- web:
- email:
- role:
- affiliation:
<<: -
address:
- id:
- contact:
- note:
- creator:
- title:
- firstname:
- lastname:
- orcid:
- web:
- email:
- role:
- affiliation:
<<: -
address:
- id:
- contact:
- note:
advisors, reviewers, examinators, participants
advisors:
- advisor:
- title:
- firstname:
- lastname:
- orcid:
- web:
- email:
- role:
- affiliation:
<<: -
address:
- id:
- contact:
- note:
- advisor:
- title:
- firstname:
- lastname:
- orcid:
- web:
- email:
- role:
- affiliation:
<<: -
address:
- id:
- contact:
- note:
tech stack
tools:
- description: >
This publication was written using free software only. The following tools were especially helpful: - stack:
- symbol: '\includegraphics{./icons/atom_editor_icon.pdf}'
- label: 'Atom Editor'
- url: 'https://atom.io/'
- stack:
- symbol:
- label: 'Better Bib(La)TeX for Zotero'
- url: 'https://retorque.re/zotero-better-bibtex/'
- stack:
- symbol: '\includegraphics{./icons/csl_icon.pdf}'
- label: 'CSL'
- url: 'http://citationstyles.org/'
- stack:
- symbol: '\includegraphics{./icons/git_icon.pdf}'
- label: 'git'
- url: 'https://git-scm.com/'
- stack:
- symbol:
- label: 'KOMA-Script'
- url: 'https://ctan.org/pkg/koma-script?lang=en/'
- stack:
- symbol:
- label: '\LaTeX'
- url: 'https://www.latex-project.org/'
- stack:
- symbol: '\includegraphics{./icons/markdown_icon.pdf}'
- label: 'Markdown'
- url: 'https://daringfireball.net/projects/markdown/'
- stack:
- symbol:
- label: 'Pandoc'
- url: 'http://pandoc.org/'
- stack:
- symbol:
- label: 'pandoc-citeproc'
- url: 'https://github.com/jgm/pandoc-citeproc/'
- stack:
- symbol:
- label: 'pandoc-crossref'
- url: 'https://github.com/lierdakil/pandoc-crossref/'
- stack:
- symbol:
- label: '\TeX Live'
- url: 'https://www.tug.org/texlive/'
- stack:
- symbol:
- label: '\XeLaTeX'
- url: 'http://xetex.sourceforge.net/'
- stack:
- symbol:
- label: 'YAML'
- url: 'http://yaml.org/'
- stack:
- symbol: '\includegraphics{./icons/zotero_icon.pdf}'
- label: 'Zotero'
- url: 'https://www.zotero.org/'
- stack:
- symbol:
- label: 'zotero-citations'
- url: 'https://github.com/retorquere/zotero-citations/'
- stack:
- symbol:
- label: 'zotero-picker'
- url: 'https://github.com/oztalha/zotero-picker/'
- stack:
- symbol:
- label: 'zotfile'
- url: 'https://github.com/jlegewie/zotfile/'
to specify metadata stored in pdf
title-meta: *title
auto-meta: *author
date-meta: *date
doi-meta: *doi
...
Template YAML lettre
author: Aaron
opening: To whom it may concern,
closing: Sincerely,
address:
- 123 Street Rd
- Chicago, IL
return-address: - My Home
- 456 Road St.
- New York, NY
ADDITIONAL ARGUMENTS
links-as-notes: true
...